package com.ebuy.shopping.mapper;

import java.util.List;

import com.ebuy.shopping.model.Category;

public interface CategoryMapper
{
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> getCategories();

    List<Category> getCategoriesByIndex();

    List<Category> getCategoriesBySecondIndex();

    List<Category> getCategoriesByParentId(int parentId);

    List<Category> getCategoriesByGrade(int grade);

}